using CQRS.Events.Memento;

namespace CQRS.Sample.Domain.BOs
{
    public class PlaneMemento : IMemento
    {
        public PlaneMemento(string planeName, string manufacturer, long yearManufactured, long flightsMadeByPlane,
                            string name, string surname, long flightsMadeByPilot, bool hasCrashed)
        {
            PlaneName = planeName;
            Manufacturer = manufacturer;
            YearManufactured = yearManufactured;
            FlightsMadeByPlane = flightsMadeByPlane;
            PilotName = name;
            PilotSurname = surname;
            FlightsMadeByPilot = flightsMadeByPilot;
            HasCrashed = hasCrashed;
        }


        public bool HasCrashed { get; private set; }
        public string PlaneName { get; private set; }
        public string Manufacturer { get; private set; }

        public long YearManufactured { get; private set; }
        public long FlightsMadeByPlane { get; private set; }
        public string PilotName { get; private set; }
        public string PilotSurname { get; private set; }
        public long FlightsMadeByPilot { get; private set; }
    }
}